package com.day01;

public class Student1$ {
    public static Student1$ MODULE$;
    private final int age;
    private String gender;

    //静态代码块
    static {
        new Student1$();
    }

    public int getAge() {
        return age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    private Student1$(){
        MODULE$ = this;
        this.age = 18;
    }
}
